package com.ssy.wireless.web.service;

import com.ssy.wireless.entity.LocalResource;
import com.ssy.wireless.mapper.LocalResourceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * Created by cofey on 16/11/20.
 */
@Service
@Transactional(readOnly = true)
public class LocalResourceService {
    @Autowired
    private LocalResourceMapper localResourceMapper;

    public List<LocalResource> find(Map<String, Object> params) {
        return localResourceMapper.select(params);
    }

    public List<LocalResource> findStatistics(Map<String, Object> params) {
        return localResourceMapper.selectStatistics(params);
    }

    public Integer findTotal(Map<String, Object> params) {
        return localResourceMapper.selectTotal(params);
    }
}

